<!DOCTYPE html>
<html lang=zh>
<head>
    <!-- so meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="HandheldFriendly" content="True">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta name="description" content="我安装的es版本是5.6的，其他版本同样适用： 1.给ElasricSearch和Kibana安装X-Pack1.ElasticSearch安装X-Pack进入es的bin目录，执行下边的命令 1.&#x2F;elasticsearch-plugin install x-pack                  #在线安装 在线安装可能会很慢，建议使用离线安装，官网下载地址：https:&#x2F;&#x2F;ar">
<meta property="og:type" content="article">
<meta property="og:title" content="破解elasticsearch的x-pack">
<meta property="og:url" content="https:&#x2F;&#x2F;fengzxia.gitee.io&#x2F;posts&#x2F;faade1c4.html">
<meta property="og:site_name" content="只是学习学习的博客">
<meta property="og:description" content="我安装的es版本是5.6的，其他版本同样适用： 1.给ElasricSearch和Kibana安装X-Pack1.ElasticSearch安装X-Pack进入es的bin目录，执行下边的命令 1.&#x2F;elasticsearch-plugin install x-pack                  #在线安装 在线安装可能会很慢，建议使用离线安装，官网下载地址：https:&#x2F;&#x2F;ar">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https:&#x2F;&#x2F;img-blog.csdnimg.cn&#x2F;20190404164935487.png?x-oss-process&#x3D;image&#x2F;watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzMzNDMwMDgz,size_16,color_FFFFFF,t_70">
<meta property="og:image" content="https:&#x2F;&#x2F;img-blog.csdnimg.cn&#x2F;20190404165127431.png?x-oss-process&#x3D;image&#x2F;watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzMzNDMwMDgz,size_16,color_FFFFFF,t_70">
<meta property="article:published_time" content="2019-04-04T08:56:33.000Z">
<meta property="article:modified_time" content="2020-04-21T02:17:07.985Z">
<meta property="article:author" content="只是学习学习">
<meta property="article:tag" content="破解">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https:&#x2F;&#x2F;img-blog.csdnimg.cn&#x2F;20190404164935487.png?x-oss-process&#x3D;image&#x2F;watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzMzNDMwMDgz,size_16,color_FFFFFF,t_70">
    
    
        
          
              <link rel="shortcut icon" href="/images/favicon.ico">
          
        
        
          
            <link rel="icon" type="image/png" href="/images/favicon-192x192.png" sizes="192x192">
          
        
        
          
            <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
          
        
    
    <!-- title -->
    <title>破解elasticsearch的x-pack</title>
    <!-- styles -->
    
<link rel="stylesheet" href="/css/style.css">

    <!-- persian styles -->
    
      
<link rel="stylesheet" href="/css/rtl.css">

    
    <!-- rss -->
    
    
    
<meta name="generator" content="Hexo 4.1.1"></head>

<body class="max-width mx-auto px3 ltr">
    
      <div id="header-post">
  <a id="menu-icon" href="#"><i class="fas fa-bars fa-lg"></i></a>
  <a id="menu-icon-tablet" href="#"><i class="fas fa-bars fa-lg"></i></a>
  <a id="top-icon-tablet" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');" style="display:none;"><i class="fas fa-chevron-up fa-lg"></i></a>
  <span id="menu">
    <span id="nav">
      <ul>
         
          <li><a href="/">主页</a></li>
         
          <li><a href="/archives/">归档</a></li>
         
          <li><a href="/categories/">分类</a></li>
         
          <li><a href="/tags/">标签</a></li>
         
          <li><a href="/search/">搜索</a></li>
         
          <li><a href="/about/">关于</a></li>
         
          <li><a href="/friend_ship/">友链</a></li>
        
      </ul>
    </span>
    <br/>
    <span id="actions">
      <ul>
        
        <li><a class="icon" href="/posts/b4ca0942.html"><i class="fas fa-chevron-left" aria-hidden="true" onmouseover="$('#i-prev').toggle();" onmouseout="$('#i-prev').toggle();"></i></a></li>
        
        
        <li><a class="icon" href="/posts/e30ff31b.html"><i class="fas fa-chevron-right" aria-hidden="true" onmouseover="$('#i-next').toggle();" onmouseout="$('#i-next').toggle();"></i></a></li>
        
        <li><a class="icon" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up" aria-hidden="true" onmouseover="$('#i-top').toggle();" onmouseout="$('#i-top').toggle();"></i></a></li>
        <li><a class="icon" href="#"><i class="fas fa-share-alt" aria-hidden="true" onmouseover="$('#i-share').toggle();" onmouseout="$('#i-share').toggle();" onclick="$('#share').toggle();return false;"></i></a></li>
      </ul>
      <span id="i-prev" class="info" style="display:none;">上一篇</span>
      <span id="i-next" class="info" style="display:none;">下一篇</span>
      <span id="i-top" class="info" style="display:none;">返回顶部</span>
      <span id="i-share" class="info" style="display:none;">分享文章</span>
    </span>
    <br/>
    <div id="share" style="display: none">
      <ul>
  <li><a class="icon" href="http://www.facebook.com/sharer.php?u=https://fengzxia.gitee.io/posts/faade1c4.html" target="_blank" rel="noopener"><i class="fab fa-facebook " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://twitter.com/share?url=https://fengzxia.gitee.io/posts/faade1c4.html&text=破解elasticsearch的x-pack" target="_blank" rel="noopener"><i class="fab fa-twitter " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.linkedin.com/shareArticle?url=https://fengzxia.gitee.io/posts/faade1c4.html&title=破解elasticsearch的x-pack" target="_blank" rel="noopener"><i class="fab fa-linkedin " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://pinterest.com/pin/create/bookmarklet/?url=https://fengzxia.gitee.io/posts/faade1c4.html&is_video=false&description=破解elasticsearch的x-pack" target="_blank" rel="noopener"><i class="fab fa-pinterest " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=破解elasticsearch的x-pack&body=Check out this article: https://fengzxia.gitee.io/posts/faade1c4.html"><i class="fas fa-envelope " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://getpocket.com/save?url=https://fengzxia.gitee.io/posts/faade1c4.html&title=破解elasticsearch的x-pack" target="_blank" rel="noopener"><i class="fab fa-get-pocket " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://reddit.com/submit?url=https://fengzxia.gitee.io/posts/faade1c4.html&title=破解elasticsearch的x-pack" target="_blank" rel="noopener"><i class="fab fa-reddit " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.stumbleupon.com/submit?url=https://fengzxia.gitee.io/posts/faade1c4.html&title=破解elasticsearch的x-pack" target="_blank" rel="noopener"><i class="fab fa-stumbleupon " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://digg.com/submit?url=https://fengzxia.gitee.io/posts/faade1c4.html&title=破解elasticsearch的x-pack" target="_blank" rel="noopener"><i class="fab fa-digg " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.tumblr.com/share/link?url=https://fengzxia.gitee.io/posts/faade1c4.html&name=破解elasticsearch的x-pack&description=" target="_blank" rel="noopener"><i class="fab fa-tumblr " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://news.ycombinator.com/submitlink?u=https://fengzxia.gitee.io/posts/faade1c4.html&t=破解elasticsearch的x-pack" target="_blank" rel="noopener"><i class="fab fa-hacker-news " aria-hidden="true"></i></a></li>
</ul>

    </div>
    <div id="toc">
      <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#1-给ElasricSearch和Kibana安装X-Pack"><span class="toc-number">1.</span> <span class="toc-text">1.给ElasricSearch和Kibana安装X-Pack</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#1-ElasticSearch安装X-Pack"><span class="toc-number">1.1.</span> <span class="toc-text">1.ElasticSearch安装X-Pack</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#2-kibana安装X-Pack"><span class="toc-number">1.2.</span> <span class="toc-text">2.kibana安装X-Pack</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2-替换X-Pack文件"><span class="toc-number">2.</span> <span class="toc-text">2.替换X-Pack文件</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#3-去官网申请license证书"><span class="toc-number">3.</span> <span class="toc-text">3.去官网申请license证书</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#4-上传license证书"><span class="toc-number">4.</span> <span class="toc-text">4.上传license证书</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#5-启用权限功能"><span class="toc-number">5.</span> <span class="toc-text">5.启用权限功能</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#6-破解在docker中安装的elasticsearch和kibana的X-Pack"><span class="toc-number">6.</span> <span class="toc-text">6.破解在docker中安装的elasticsearch和kibana的X-Pack</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#1-将宿主机的文件拷贝置容器中"><span class="toc-number">6.1.</span> <span class="toc-text">1.将宿主机的文件拷贝置容器中</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#2-将容器中的文件拷贝置宿主机上"><span class="toc-number">6.2.</span> <span class="toc-text">2.将容器中的文件拷贝置宿主机上</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#kibana在docker中安装，服务器内存必须大于2G才可以安装成功"><span class="toc-number">6.3.</span> <span class="toc-text">kibana在docker中安装，服务器内存必须大于2G才可以安装成功</span></a></li></ol></li></ol>
    </div>
  </span>
</div>

    
    <div class="content index py4">
        
        <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
  <header>
    
    <h1 class="posttitle" itemprop="name headline">
        破解elasticsearch的x-pack
    </h1>



    <div class="meta">
      <span class="author" itemprop="author" itemscope itemtype="http://schema.org/Person">
        <span itemprop="name">只是学习学习的博客</span>
      </span>
      
    <div class="postdate">
      
        <time datetime="2019-04-04T08:56:33.000Z" itemprop="datePublished">2019-04-04</time>
        
      
    </div>


      
    <div class="article-category">
        <i class="fas fa-archive"></i>
        <a class="category-link" href="/categories/DB/">DB</a> › <a class="category-link" href="/categories/DB/NoSQL/">NoSQL</a> › <a class="category-link" href="/categories/DB/NoSQL/Elasticsearch/">Elasticsearch</a> › <a class="category-link" href="/categories/DB/NoSQL/Elasticsearch/x-pack/">x-pack</a> › <a class="category-link" href="/categories/ELK/">ELK</a> › <a class="category-link" href="/categories/ELK/Elasticsearch/">Elasticsearch</a>
    </div>


      
    <div class="article-tag">
        <i class="fas fa-tag"></i>
        <a class="tag-link" href="/tags/%E7%A0%B4%E8%A7%A3/" rel="tag">破解</a>
    </div>


    </div>
  </header>
  

  <div class="content"itemprop ="articleBody">
    <p>我安装的es版本是5.6的，其他版本同样适用：</p>
<h2 id="1-给ElasricSearch和Kibana安装X-Pack"><a href="#1-给ElasricSearch和Kibana安装X-Pack" class="headerlink" title="1.给ElasricSearch和Kibana安装X-Pack"></a>1.给ElasricSearch和Kibana安装X-Pack</h2><h3 id="1-ElasticSearch安装X-Pack"><a href="#1-ElasticSearch安装X-Pack" class="headerlink" title="1.ElasticSearch安装X-Pack"></a>1.ElasticSearch安装X-Pack</h3><p>进入es的bin目录，执行下边的命令</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">.&#x2F;elasticsearch-plugin install x-pack                  #在线安装</span><br></pre></td></tr></table></figure>
<p>在线安装可能会很慢，建议使用离线安装，官网下载地址：<a href="https://artifacts.elastic.co/downloads/packs/x-pack/x-pack-5.6.13.zip" target="_blank" rel="noopener">https://artifacts.elastic.co/downloads/packs/x-pack/x-pack-5.6.13.zip</a><br>我下载好的压缩文件在<code>/opt/myapp</code>目录</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">.&#x2F;elasticsearch-plugin install file:&#x2F;&#x2F;&#x2F;opt&#x2F;myapp&#x2F;x-pack-5.6.12.zip            #离线安装</span><br></pre></td></tr></table></figure>
<p>安装成功后，需要先禁用x-pack的权限功能，打开es的配置文件，<code>./config/elasticsearch.yml</code>,在末尾添加</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">#禁用权限功能</span><br><span class="line">xpack.security.enabled: false</span><br></pre></td></tr></table></figure>
<h3 id="2-kibana安装X-Pack"><a href="#2-kibana安装X-Pack" class="headerlink" title="2.kibana安装X-Pack"></a>2.kibana安装X-Pack</h3><ul>
<li><strong>kibana在安装X-Pack时，服务器内存必须大于2G才可以安装成功</strong><br>同ElasticSearch一样，进入kibana的bin目录安装，下载的x-pack离线文件中包含了elasticsearch和kibana的x-pack插件，所以kibana在安装的时候不需要再进行下载<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">.&#x2F;kibana-plugin install x-pack                   #在线安装</span><br><span class="line">.&#x2F;kibana-plugin install file:&#x2F;&#x2F;&#x2F;opt&#x2F;myapp&#x2F;x-pack-5.6.12.zip    #离线安装</span><br></pre></td></tr></table></figure>

</li>
</ul>
<h2 id="2-替换X-Pack文件"><a href="#2-替换X-Pack文件" class="headerlink" title="2.替换X-Pack文件"></a>2.替换X-Pack文件</h2><p>安装成功后，进入es的<code>./plugins/x-pack</code>目录找到<code>x-pack-5.6.9.jar</code>这个jar包,用解压工具打开，分别进入到<br><code>org\elasticsearch\license</code>目录和<code>org\elasticsearch\xpack</code>找到<code>LicenseVerifier</code>、<code>XPackBuild.class</code>这两个文件替换，使用<strong>下边的项目</strong>按照jar包中的路径进行调整包路径，然后编辑把这两个文件替换置x-pack-5.6.9.jar包中</p>
<blockquote>
<p><a href="https://gitee.com/fengzxia/es_crack_x_pack" target="_blank" rel="noopener">https://gitee.com/fengzxia/es_crack_x_pack</a></p>
</blockquote>
<h2 id="3-去官网申请license证书"><a href="#3-去官网申请license证书" class="headerlink" title="3.去官网申请license证书"></a>3.去官网申请license证书</h2><blockquote>
<p><a href="https://license.elastic.co/registration" target="_blank" rel="noopener">https://license.elastic.co/registration</a></p>
</blockquote>
<ol>
<li>邮箱认真写，用来接收json文件的</li>
<li>country写china,其它都可以随便写</li>
<li>点击申请后邮箱马上会收到一个证书JSON文件</li>
</ol>
<p>下载证书json文件后修改以下几个内容</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">1. &quot;type&quot;:&quot;basic&quot; 替换为 “type”:&quot;platinum&quot; # 基础版变更为铂金版</span><br><span class="line">2. &quot;expiry_date_in_millis&quot;:1561420799999 替换为 &quot;expiry_date_in_millis&quot;:3107746200000# 1年变为50年</span><br></pre></td></tr></table></figure>
<h2 id="4-上传license证书"><a href="#4-上传license证书" class="headerlink" title="4.上传license证书"></a>4.上传license证书</h2><p>启动elasticsearch、kibana，根据邮件中发送的上传证书教程，将修改后的证书上传到es中，打开kibana进入Monitoring中查看激活日期，如下图已经变成到2068年表示激活成功<br><img src="https://img-blog.csdnimg.cn/20190404164935487.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzMzNDMwMDgz,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<h2 id="5-启用权限功能"><a href="#5-启用权限功能" class="headerlink" title="5.启用权限功能"></a>5.启用权限功能</h2><p>打开elasticsearch的<code>./config/elasticsearch.yml</code>文件将<code>xpack.security.enabled</code>设置为<code>true</code>，重启elasticserch，再访问kibana,就会跳转置登陆页面，然后输入默认的账号：<code>elastic</code>，密码：<code>changeme</code>，便能登陆成功<br><img src="https://img-blog.csdnimg.cn/20190404165127431.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzMzNDMwMDgz,size_16,color_FFFFFF,t_70" alt="在这里插入图片描述"></p>
<h2 id="6-破解在docker中安装的elasticsearch和kibana的X-Pack"><a href="#6-破解在docker中安装的elasticsearch和kibana的X-Pack" class="headerlink" title="6.破解在docker中安装的elasticsearch和kibana的X-Pack"></a>6.破解在docker中安装的elasticsearch和kibana的X-Pack</h2><p>在docker中安装和直接在linux中安装操作一样，docker容器中的es和kibana配置都在<code>/usr/share/</code>目录下，相较于在linux中安装多了一步将修改后x-pack.jar拷贝至docker容器中：</p>
<h3 id="1-将宿主机的文件拷贝置容器中"><a href="#1-将宿主机的文件拷贝置容器中" class="headerlink" title="1.将宿主机的文件拷贝置容器中"></a>1.将宿主机的文件拷贝置容器中</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker cp 宿主机的文件路径 容器名称:容器的目录</span><br></pre></td></tr></table></figure>
<h3 id="2-将容器中的文件拷贝置宿主机上"><a href="#2-将容器中的文件拷贝置宿主机上" class="headerlink" title="2.将容器中的文件拷贝置宿主机上"></a>2.将容器中的文件拷贝置宿主机上</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker cp 容器名:容器中的文件路径 宿主机的文件目录</span><br></pre></td></tr></table></figure>
<h3 id="kibana在docker中安装，服务器内存必须大于2G才可以安装成功"><a href="#kibana在docker中安装，服务器内存必须大于2G才可以安装成功" class="headerlink" title="kibana在docker中安装，服务器内存必须大于2G才可以安装成功"></a>kibana在docker中安装，服务器内存必须大于2G才可以安装成功</h3><p><strong>注意：在kibana中安装x-pack时要求服务器内存必须要大于2G才可以安装，否则无法安装成功,内存不够请参考<a href="https://fengzxia.gitee.io/posts/b4ca0942.html">docker将服务器上的kibana容器打包并导入这篇博客</a></strong></p>

<div id="gitalk-container"></div>
<script src="https://cdn.bootcss.com/blueimp-md5/2.12.0/js/md5.min.js"></script><link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css"><script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>

		<script>
		var gitalkConfig = {"clientID":"28a065e3b5afee156f4f","clientSecret":"e18104d6f3219526491fc42c892ff6a26b8f3e74","repo":"blog_comment","owner":"FENG1000","admin":["FENG1000"],"distractionFreeMode":false};
	    gitalkConfig.id = md5(location.pathname);
		var gitalk = new Gitalk(gitalkConfig);
	    gitalk.render("gitalk-container");
	    </script>
    
  <blockquote>
      <p>
          作者: 只是学习学习<br>
          邮箱: fengzxia1000@163.com<br>
          原文地址: <a href="https://fengzxia.gitee.io/posts/faade1c4.html" target="_blank" rel="noopener">https://fengzxia.gitee.io/posts/faade1c4.html</a><br>
          版权声明: 商业转载请联系作者获得授权，非商业转载请注明出处。
      </p>
  </blockquote>

  <script>
      function setClipboardText(event){
          // clipboardData 对象是为通过编辑菜单、快捷菜单和快捷键执行的编辑操作所保留的，也就是你复制或者剪切内容
          let clipboardData = event.clipboardData || window.clipboardData;
          // 如果未复制或者未剪切，则return出去
          if (!clipboardData) { return; }
          event.preventDefault();
          // Selection 对象，表示用户选择的文本范围或光标的当前位置。
          //     声明一个变量接收 -- 用户输入的剪切或者复制的文本转化为字符串
          let text = window.getSelection().toString();

          if (text) {
            // 如果文本存在则先取消文本默认事件
            event.preventDefault();
            // 通过调用常clipboardData对象的 setData(format, data) 方法；来设置相关文本
            // format: 一个DOMString 表示要添加到 drag object的拖动数据的类型。
            // data: 一个 DOMString表示要添加到 drag object的数据。
            var copyright = '\n\n'
                            + '\n著作权归作者所有。'
                            + '\n商业转载请联系作者获得授权，非商业转载请注明出处。'
                            + '\n作者: 只是学习学习'
                            + '\n邮箱: fengzxia1000@163.com'
                            + '\n原文地址: https://fengzxia.gitee.io/posts/faade1c4.html'

            clipboardData.setData('text/plain', text + copyright);

          }
      };
      var contents = document.getElementsByClassName("content");
      // 监听文章内容的copy事件
      contents[0].addEventListener('copy',function(e){
          setClipboardText(e);
      });
  </script>

  </div>
</article>




        
          <div id="footer-post-container">
  <div id="footer-post">

    <div id="nav-footer" style="display: none">
      <ul>
         
          <li><a href="/">主页</a></li>
         
          <li><a href="/archives/">归档</a></li>
         
          <li><a href="/categories/">分类</a></li>
         
          <li><a href="/tags/">标签</a></li>
         
          <li><a href="/search/">搜索</a></li>
         
          <li><a href="/about/">关于</a></li>
         
          <li><a href="/friend_ship/">友链</a></li>
        
      </ul>
    </div>

    <div id="toc-footer" style="display: none">
      <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#1-给ElasricSearch和Kibana安装X-Pack"><span class="toc-number">1.</span> <span class="toc-text">1.给ElasricSearch和Kibana安装X-Pack</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#1-ElasticSearch安装X-Pack"><span class="toc-number">1.1.</span> <span class="toc-text">1.ElasticSearch安装X-Pack</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#2-kibana安装X-Pack"><span class="toc-number">1.2.</span> <span class="toc-text">2.kibana安装X-Pack</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2-替换X-Pack文件"><span class="toc-number">2.</span> <span class="toc-text">2.替换X-Pack文件</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#3-去官网申请license证书"><span class="toc-number">3.</span> <span class="toc-text">3.去官网申请license证书</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#4-上传license证书"><span class="toc-number">4.</span> <span class="toc-text">4.上传license证书</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#5-启用权限功能"><span class="toc-number">5.</span> <span class="toc-text">5.启用权限功能</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#6-破解在docker中安装的elasticsearch和kibana的X-Pack"><span class="toc-number">6.</span> <span class="toc-text">6.破解在docker中安装的elasticsearch和kibana的X-Pack</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#1-将宿主机的文件拷贝置容器中"><span class="toc-number">6.1.</span> <span class="toc-text">1.将宿主机的文件拷贝置容器中</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#2-将容器中的文件拷贝置宿主机上"><span class="toc-number">6.2.</span> <span class="toc-text">2.将容器中的文件拷贝置宿主机上</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#kibana在docker中安装，服务器内存必须大于2G才可以安装成功"><span class="toc-number">6.3.</span> <span class="toc-text">kibana在docker中安装，服务器内存必须大于2G才可以安装成功</span></a></li></ol></li></ol>
    </div>

    <div id="share-footer" style="display: none">
      <ul>
  <li><a class="icon" href="http://www.facebook.com/sharer.php?u=https://fengzxia.gitee.io/posts/faade1c4.html" target="_blank" rel="noopener"><i class="fab fa-facebook fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://twitter.com/share?url=https://fengzxia.gitee.io/posts/faade1c4.html&text=破解elasticsearch的x-pack" target="_blank" rel="noopener"><i class="fab fa-twitter fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.linkedin.com/shareArticle?url=https://fengzxia.gitee.io/posts/faade1c4.html&title=破解elasticsearch的x-pack" target="_blank" rel="noopener"><i class="fab fa-linkedin fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://pinterest.com/pin/create/bookmarklet/?url=https://fengzxia.gitee.io/posts/faade1c4.html&is_video=false&description=破解elasticsearch的x-pack" target="_blank" rel="noopener"><i class="fab fa-pinterest fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=破解elasticsearch的x-pack&body=Check out this article: https://fengzxia.gitee.io/posts/faade1c4.html"><i class="fas fa-envelope fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://getpocket.com/save?url=https://fengzxia.gitee.io/posts/faade1c4.html&title=破解elasticsearch的x-pack" target="_blank" rel="noopener"><i class="fab fa-get-pocket fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://reddit.com/submit?url=https://fengzxia.gitee.io/posts/faade1c4.html&title=破解elasticsearch的x-pack" target="_blank" rel="noopener"><i class="fab fa-reddit fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.stumbleupon.com/submit?url=https://fengzxia.gitee.io/posts/faade1c4.html&title=破解elasticsearch的x-pack" target="_blank" rel="noopener"><i class="fab fa-stumbleupon fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://digg.com/submit?url=https://fengzxia.gitee.io/posts/faade1c4.html&title=破解elasticsearch的x-pack" target="_blank" rel="noopener"><i class="fab fa-digg fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.tumblr.com/share/link?url=https://fengzxia.gitee.io/posts/faade1c4.html&name=破解elasticsearch的x-pack&description=" target="_blank" rel="noopener"><i class="fab fa-tumblr fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://news.ycombinator.com/submitlink?u=https://fengzxia.gitee.io/posts/faade1c4.html&t=破解elasticsearch的x-pack" target="_blank" rel="noopener"><i class="fab fa-hacker-news fa-lg" aria-hidden="true"></i></a></li>
</ul>

    </div>

    <div id="actions-footer">
        <a id="menu" class="icon" href="#" onclick="$('#nav-footer').toggle();return false;"><i class="fas fa-bars fa-lg" aria-hidden="true"></i> 菜单</a>
        <a id="toc" class="icon" href="#" onclick="$('#toc-footer').toggle();return false;"><i class="fas fa-list fa-lg" aria-hidden="true"></i> 目录</a>
        <a id="share" class="icon" href="#" onclick="$('#share-footer').toggle();return false;"><i class="fas fa-share-alt fa-lg" aria-hidden="true"></i> 分享</a>
        <a id="top" style="display:none" class="icon" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up fa-lg" aria-hidden="true"></i> 返回顶部</a>
    </div>

  </div>
</div>

        
        <footer id="footer">
  <div class="footer-left">
    Copyright &copy;
    
    
    2019-2020
    只是学习学习
  </div>
  <div class="footer-right">
    <nav>
      <ul>
         
          <li><a href="/">主页</a></li>
         
          <li><a href="/archives/">归档</a></li>
         
          <li><a href="/categories/">分类</a></li>
         
          <li><a href="/tags/">标签</a></li>
         
          <li><a href="/search/">搜索</a></li>
         
          <li><a href="/about/">关于</a></li>
         
          <li><a href="/friend_ship/">友链</a></li>
        
      </ul>
    </nav>
  </div>
</footer>

    </div>
    <!-- styles -->

<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">


<link rel="stylesheet" href="/lib/justified-gallery/css/justifiedGallery.min.css">


    <!-- jquery -->

<script src="/lib/jquery/jquery.min.js"></script>


<script src="/lib/justified-gallery/js/jquery.justifiedGallery.min.js"></script>

<!-- clipboard -->

  
<script src="/lib/clipboard/clipboard.min.js"></script>

  <script type="text/javascript">
  $(function() {
    // copy-btn HTML
    var btn = "<span class=\"btn-copy tooltipped tooltipped-sw\" aria-label=\"复制到粘贴板!\">";
    btn += '<i class="far fa-clone"></i>';
    btn += '</span>'; 
    // mount it!
    $(".highlight table").before(btn);
    var clip = new ClipboardJS('.btn-copy', {
      text: function(trigger) {
        return Array.from(trigger.nextElementSibling.querySelectorAll('.code')).reduce((str,it)=>str+it.innerText+'\n','')
      }
    });
    clip.on('success', function(e) {
      e.trigger.setAttribute('aria-label', "复制成功!");
      e.clearSelection();
    })
  })
  </script>


<script src="/js/main.js"></script>

<!-- search -->

<!-- Google Analytics -->

<!-- Baidu Analytics -->

    <script type="text/javascript">
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?54382acbd8c4bc66535bce135e0ac166";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>

<!-- Disqus Comments -->


</body>
<script>
(function(){
    var bp = document.createElement('script');
    var curProtocol = window.location.protocol.split(':')[0];
    if (curProtocol === 'https'){
   bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
  }
  else{
  bp.src = 'http://push.zhanzhang.baidu.com/push.js';
  }
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
})();
</script>
</html>
